#include "../TdsReqHandler.h"
#include <string>
#include <map>

class TFKLineReqHandler : public TdsCmdHandler
{
	Q_OBJECT
public:
	Q_INVOKABLE  TFKLineReqHandler();
    bool processCmd(const QJsonObject& cmdObj, const ReqInfo& reqinfo, bool unReg = false) override;

protected slots:
	void onkLineReqDataArrived(QString id, int beginIndex, int endIndex);

private:
	bool parse(const QJsonObject& cmdObj);

private:
	std::string m_id;
	std::string m_key;
	std::multimap<std::string, ReqInfo>	m_reqs;
};
